/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package memory;

import java.util.ArrayList;

/**
 *
 * @author Erdiansyah
 */
public class ChatBox {

    private ArrayList<Room> roomlist;
    private ArrayList<Chatroom> chatroomlist;

    public ChatBox() {
        roomlist = new ArrayList<Room>();
        chatroomlist = new ArrayList<Chatroom>();
    }

    public ArrayList<Chatroom> getChatroomlist() {
        return chatroomlist;
    }

    public ArrayList<Room> getRoomlist() {
        return roomlist;
    }

    public void addRoomToList(Room room) {
        this.roomlist.add(room);
    }

    public void addChatroomToList(Chatroom chatroom) {
        this.chatroomlist.add(chatroom);
    }

    public void removeChatFromChatBox(Chatroom chatroom) {
        chatroomlist.remove(chatroom);
    }

    public void removeRoomFromChatBox(Room room) {
        roomlist.remove(room);
    }
}
